#!/usr/bin/perl

# Output the total number of arguments
my $num_args = $#ARGV + 1;
print "Total number of arguments: $num_args\n";

# Output each argument on a new line with its number
for my $i (0 .. $#ARGV) {
    print "The ", $i+1, " argument is : $ARGV[$i]\n";
}